import requests


class IhrmLoginApi:
    # 定义一个登入的方法
    @classmethod
    def ihrm_login(cls, body):
        url = " http://ihrm-test.itheima.net/api/sys/login"
        header = {"Content-Type": "application/json"}
        resp = requests.post(url=url, headers=header, json=body)
        return resp
